package com.jf.blog_jf04.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jf.blog_jf04.bean.Blog;
import com.jf.blog_jf04.data.PageInfo;
import com.jf.blog_jf04.data.ov.BlogSearchOV;
import com.jf.blog_jf04.data.ov.BlogUpdateOV;
import com.jf.blog_jf04.utils.R;

import java.util.List;

/**
 * @author pang6
 * @description 针对表【blog(博客表)】的数据库操作Service
 * @createDate 2025-10-18 14:32:11
 */
public interface BlogService extends IService<Blog> {
    void saveOrUpdate(BlogUpdateOV form);

    R getPage(PageInfo pageInfo, BlogSearchOV form);

    void delete(List<Integer> ids);

    void updateStatus(int blogId);

    R getVipPage(long page, Integer categoryId);

    R getVipBlog(int blogId);

    R getVipPageByTagId(int page, Integer tagId);

    R getVipBlogDetail(int blogId);
}
